.resizable-table-container {
  position: relative;
}

.resizable-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.resize-handle {
  position: absolute;
  right: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
  background: transparent;
  z-index: 1;
}

.resize-handle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.resize-handle:active {
  background: rgba(0, 0, 0, 0.2);
}

/* 确保表格头部单元格有相对定位 */
.resizable-table-container .ant-table-thead > tr > th {
  position: relative;
  overflow: visible;
}

/* 防止文本选择在调整大小时 */
.resizable-table-container.resizing {
  user-select: none;
}

/* 调整手柄的视觉指示器 */
.resize-handle::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  background: #d9d9d9;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}

.resize-handle:hover::after {
  opacity: 1;
}